package com.pp.service.impl;

import com.pp.dao.FurnMapper;
import com.pp.model.Furn;
import com.pp.service.FurnService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class FurnServiceImpl  implements FurnService {
    @Autowired
    private FurnMapper furnMapper;

    @Override
    public int insert(Furn furn) {
        return furnMapper.insert(furn);
    }

    @Override
    public List<Furn> selectByPage(int offset, int pageSize, String search) {
        return furnMapper.selectByPage(offset,pageSize,search);
    }

    @Override
    public int count(String search) {
        return furnMapper.count(search);
    }

    @Override
    public Furn selectById(Integer id) {
        return furnMapper.selectById(id);
    }

    @Override
    public int update(Furn furn) {
        return furnMapper.update(furn);
    }

    @Override
    public int deleteById(Integer id) {
        return furnMapper.delete(id);
    }
}
